<%@ page language="java" contentType="text/html; charset=UTF-8"%>


<!---------------------------------------头部模块复用------------------------------------------>
<%@ include file="/res/FrontPage/PartialPageReferences/head.jsp" %>

<title>短期投资</title>

<!-- -----------------------------------正文开始--------------------------------------- -->
<% if(session.getAttribute("users") == null){ %>
<script type="text/javascript">
	alert("请先登录哦~~~");
	window.location="/Bank/WebPage/FrontPage/index.jsp";
</script>
<%}else{ %>
<section class="contact_page">
    <div class="container">
 		<div class="row">
            <div class="col-sm-6 col-sm-offset-3 m-t-50">
                <h2 class="underline heading">短期投资</h2>
                <p class="text-center">短期投资利息为5%每月，可以投资任意资金，风险为5%。</p>
            </div>
        </div>
        <div class="row">
		    <div class="col-xs-12 col-sm-6 section-top-30 wow fadeInRight" data-wow-duration="1s" data-wow-delay="0.2s">
                <div class="row contact_border">
                    <div class="contact_form">
                        <form class="form" action="/Bank/duanqitouzi.do" onsubmit="return validate_form(this)" method="post">
                            <div class="col-xs-12"><h4 class="heading_left">账号余额：<%=((Users)session.getAttribute("users")).getYue()%>
                            </h4></div>
                            <div class="col-xs-12"><h4 class="heading_left">账号现金：<%=((Users)session.getAttribute("users")).getMoney()%>
                            </h4></div>
                            <div class="form-group col-xs-12 section-top-10">
							<div class="col-xs-12"><h4 class="heading_left"> 投资金额：</h4></div>
                                <input id="cunkuanshuliang" type="text" class="form-control" name="touzijine" placeholder="请输入投资金额" required>
                            </div>
                            <div class="clearfix visible-sm-block visible-md-block visible-xs-block"></div>
                            <input type="hidden" name="type" value="f1" />
                            <div class="form-group col-xs-12 section-top-10">
                           <div class="col-xs-12"><h4 class="heading_left">  投资月数：</h4></div>
                                <input type="text" class="form-control" name="month" placeholder="请输入投资多少个月" required>
                            </div>
                            <div class="clearfix visible-sm-block visible-md-block visible-xs-block"></div>
                            <div class="col-md-12 text-center section-bottom-15">
                                <button type="submit" class="btn btn-success">投资</button>
                            </div>
                            <input type="hidden" name="type" value="f2" />
                        </form>
                    </div>
                </div>
            </div>
         	<div class="col-xs-12 col-sm-6 section-top-30 wow fadeInRight" data-wow-duration="1s" data-wow-delay="0.2s">
                <div class="row contact_border">
                    <div class="contact_form">
                        <div class="col-xs-12"><h4 class="heading_left">投资到期后您将获得：</br>
                            </h4></div>
                       <div class="clearfix visible-sm-block visible-md-block visible-xs-block"></div>
                        <table border=’1’ cellspacing=’0’ cellpadding=’5’ class="table table-striped table-bordered table-hover table-condensed">
                            <tr><th> 理财产品名称 </th><th> 投资金额 </th><th> 投资月数 </th><th> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;到期时间 </th><th> 投资到期后可获得金额</th></tr>
                            <!-- 这里是需要修改的。暂时还没显示 -->
                            <%
                                Invest invest = new Invest();
                                List<Invest> list = invest.getInvestListByName(((Users) session.getAttribute("users")).getZhanghao());
                                for(Invest invest1 : list){%>
                                    <tr><td align="center"><%= invest1.getProduct_name() %></td><td align="center"><%= invest1.getMoney() %></td><td align="center"><%= invest1.getMonth() %></td>
                                        <td align="center"><%= invest1.getEnd_time() %></td><td align="center"><%= invest1.getAfter_money() %></td></tr>
                            <%
                                }
                            %>
                        </table>
                        <!--注释1-->
                    </div>
                </div>
            </div>
	    </div>
	</div>
</section>
<%} %>
<!-- -----------------------------------正文结束--------------------------------------- -->

<!------------尾部顶端的两个角------------>
<div class="shape section-top-50"></div>

<!-----------------------------尾部页面复用------------------------------------->
<%@ include file="/res/FrontPage/PartialPageReferences/foot.jsp" %>
